.sidebar {
  width: 240px;
  background-color: white;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: calc(100vh - 60px);
  top: 60px; /* 导航栏高度 */
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar-content {
  padding: 20px 0;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  margin-bottom: 5px;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
  position: relative;
}

.nav-links a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--secondary-color);
}

.nav-links a.active {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
  font-weight: 500;
}

.nav-links a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary-color);
}

.nav-links .icon {
  margin-right: 10px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: var(--light-text-color);
}

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .nav-links a {
    padding: 15px;
    justify-content: center;
  }
  
  .nav-links .icon {
    margin-right: 0;
    font-size: 20px;
  }
  
  .nav-links span {
    display: none;
  }
  
  .sidebar-footer {
    display: none;
  }
} 